package com.skwyb.form.bean.req.admin;

import com.skwyb.form.bean.req.BaseSaveRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

@Data
@EqualsAndHashCode(callSuper = true)
public class SaveRoleReq extends BaseSaveRequest {
    @ApiModelProperty("id")
    @Length(max = 36, message = "id too long")
    private String id;

    @ApiModelProperty("角色名称")
    @NotBlank(message = "roleName is null")
    @Length(max = 50, message = "roleName too long")
    private String roleName;

    @ApiModelProperty("角色描述")
    @Length(max = 255, message = "roleDesc too long")
    private String roleDesc;

    @ApiModelProperty("管理员id")
    @NotBlank(message = "adminIds is null")
    @Length(max = 5000, message = "adminIds too long")
    private String adminIds;

    @ApiModelProperty("菜单id")
    @NotBlank(message = "menuIds is null")
    @Length(max = 5000, message = "menuIds too long")
    private String menuIds;

}